package com.bishe.pojo;

import com.bishe.utils.ColumnUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 业务
 * @date 2022/03/02 36:11:09
 */
@Data
@ApiModel("业务实体类")
public class Business implements Serializable {

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("业务类型")
    private String type;

    @ApiModelProperty("邮箱")
    private String email;


    @ApiModelProperty("电话")
    private String phone;


    @ApiModelProperty("账号")
    private String count;

    @ApiModelProperty("业务名称")
    @ColumnUtil.TableField
    private String typeName;

    @ApiModelProperty("创建人")
    private String createBy;
}
